What's the error here? Just discovered it; had this function for 12 years.
bool fReplaceString(Buffer &in_bufString, string in_FromString, in_ToString, bool in_MatchCase)
{ // Replace all instances of in_FromString to in_ToString in the in_bufString.
// Return whether a change was actually made
// When in_MatchCase, in_FromString must match exactly,
// otherwise in_FromString may match case-insensitively
// Notice that less converting/unconverting is used when in_MatchCase is true.
if (fIsEmptyBuf(in_bufString) or // Program error -
null in_FromString or // Program error -
in_FromString == in_ToString // nothing to do -
) then return(false)
// body snipped, no errors there
}
llandale - Wed Aug 08 10:50:14 EDT 2012 |
Re: DXL Error Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: DXL Error |